package com.example.learn.service.impl;


import com.example.learn.mapper.UserMapper;
import com.example.learn.pojo.User;
import com.example.learn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getKnowleDgeList() {
        return userMapper.getName();
    }

    @Override
    public User getUserByName(String name) {
        return userMapper.queryUserByName(name);
    }


}
